package com.sailfish.springbootdemo.controller.db4;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.service.db4.OperateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/operate")
public class OperateController {

    @Autowired
    private OperateService operateService;

    @PostMapping("/getAllOperate")
    public Result getAllOperate(Integer page, Integer pageSize, String operateBigType, String nickNameCn, String operateDataType, String operateDataTypeNotes) {
        return operateService.getAllOperate(page, pageSize, operateBigType, nickNameCn, operateDataType, operateDataTypeNotes);
    }
}
